<link href="~/css/InventoryThings/showInventorys.css" rel="stylesheet" />
@model ToDoListWeb.Models.Type
@{
}

<div class="total" id="compile-body">
    <div class="userInfor" id="compile-title">
        <p>添加清单</p>
        <div>
            <div>
                <table id="table-showInventory">
                    @foreach (var item in Model.Inventory)
                    {
                        <tr>
                            <th>
                                <a href="/Matter/ShowMatters?inventoryId=@item.InventoryId">
                                    <h5>@item.InventoryName</h5>
                                </a>
                            </th>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </div>
</div>
<h5>@ViewData["Message"]</h5>
<div>
    <form id="change-inventory" action="/Inventory/AddInventory?typeId=@Model.TypeId" method="post">
        <input type="text" name="inventoryName" placeholder="添加清单,按Enter键完成" />
    </form>

</div>
<a href="/Type/AddType"><h4>返回</h4></a>